package com.aidong.pay.config.util;

import java.text.SimpleDateFormat;
import java.util.Date;

public class ClenderUtil {

	/**
	 * 生成电子券号
	 * @return
	 */
	public static String electronicTicketNo(String phoneNo){
		String tel = phoneNo.substring(phoneNo.length()-4,phoneNo.length()); // 手机号码后四位
		Date date = new Date();
		SimpleDateFormat sdf = new SimpleDateFormat("ddHHmmss");
		StringBuffer sb = new StringBuffer();
		String no = sdf.format(date);
		sb.append(no);
		sb.append(tel);
		return sb.toString();
	}
	
	public static void main(String[] args) {
		System.out.println(electronicTicketNo("18321717689"));
	}
}
